package com.qst.medical.mapper;

import com.qst.medical.domain.MedicalPolicy;
import com.qst.medical.entity.MedicalPolicyEntity;
import com.qst.medical.model.MedicalPolicyModel;
import com.qst.medical.param.MedicalPolicyParam;
import org.springframework.stereotype.Component;
import java.util.List;

/**
 * 医保政策数据访问接口
 *
 * @author liulindong
 * @since 2021/8/23 17:24
 */
@Component
public interface MedicalPolicyMapper {

    /*医保政策条件查询*/
    List<MedicalPolicyModel> getAllPolicy(MedicalPolicyParam param);

    /*新增医保政策*/
    int saveMedicalPolicy(MedicalPolicyEntity param);

    /*更新医保政策*/
    int updateMedicalPolicy(MedicalPolicyEntity param);

    /*根据id删除医保政策*/
    int deleteMedicalPolicy(Long id);
/*
    根据城市删除医保政策
*/
    int deleteByCity(Integer city);

}